package com.web.customer.mapper;


import com.web.customer.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {

    List<Customer> getCustomers(@Param("customerNo") Integer customerNo,@Param("customerGroup") String customerGroup,@Param("customerName") String customerName);

    Integer addCustomer(Customer customer);

    Integer amendCustomer(Customer customer);

    Integer logicalDeleteCustomer(@Param("customerNo") String customerNo);

    Customer getCustomerByPendingNumber(@Param("pendingNumber")Integer pendingNumber);

    Integer physicsDeleteCustomer(@Param("pendingNumber") Integer pendingNumber);

    Integer updateApprove(@Param("pendingNumber") Integer pendingNumber);

    Integer updatePendingNumber(Customer customer);

    Customer getDuplicateData(@Param("customerGroup") String customerGroup,@Param("customerName")String customerName);

    Integer updateReject(@Param("pendingNumber") Integer pendingNumber);

    Integer addTemporaryCustomer(Customer customerNew);

    Integer physicsDeleteTemporaryCustomer(@Param("pendingNumber") Integer pendingNumber);

    Customer getTemporaryCustomer(@Param("pendingNumber")Integer pendingNumber);

    Integer updateSourceCustomer(Customer customer);
}
